package com.ruoyi.detection.service.impl;

import com.ruoyi.detection.domain.ProvincePlot;
import com.ruoyi.detection.mapper.ProvincePlotMapper;
import com.ruoyi.detection.service.ProvincePlotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: base-planthopper-detection-master_202130504106_李航
 * @description:
 * @author: LiHang
 * @create: 2021-09-24 19:45
 **/

@Service
public class ProvincePlotServiceImpl implements ProvincePlotService {


    @Autowired
    public ProvincePlotMapper provincePlotMapper;

    /**
     * 对应省份插入地块信息
     * @param provincePlot
     */
    @Override
    public void insertProvincePlot(ProvincePlot provincePlot) {
        provincePlotMapper.insertProvincePlot(provincePlot);
    }

    /**
     * 根据省份地区查询地块信息
     * @param provincePlot
     * @return
     */
    @Override
    public List<String> selectPlotbyProvince(ProvincePlot provincePlot) {
        return provincePlotMapper.selectFromProvinceToPlot(provincePlot);
    }
}
